﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using SmartEP.Presenter;

namespace SmartDesktop
{
    public partial class Step6View : MedicalHistoryBaseView, IStep6View
    {
        public Step6View(PatientCarePresenter presenter)
            : base(presenter)
        {
            InitializeComponent();
            this.Name = "Registration Step 6";
            MainForm.BarCaption.Text = this.Name;

            this.step = 6;
            this.GroupStep = GroupStepType.MedicalHistory;
        }

        #region Property
        public string UnknownFamilyHistory
        {
            get
            {
                return txtFamilyHistory.Text;
            }
            set
            {
                txtFamilyHistory.Text = value;
            }
        }

        public bool Blindness
        {
            get
            {
                return rdYesBlindness.Checked;
            }
            set
            {
                rdYesBlindness.Checked = value;
            }
        }

        public bool Cataracts
        {
            get
            {
                return rdYesCataracts.Checked;
            }
            set
            {
                rdYesCataracts.Checked = value;
            }
        }

        public bool CrossedEyes
        {
            get
            {
                return rdYesCrossedEye.Checked;
            }
            set
            {
                rdYesCrossedEye.Checked = value;
            }
        }

        public bool Glaucoma
        {
            get
            {
                return rdYesGlaucoma.Checked;
            }
            set
            {
                rdYesGlaucoma.Checked = value;
            }
        }

        public bool LazyEye
        {
            get
            {
                return rdYesLazyEye.Checked;
            }
            set
            {
                rdYesLazyEye.Checked = value;
            }
        }

        public bool MacularDegeneration
        {
            get
            {
                return rdYesMacularDegeneration.Checked;
            }
            set
            {
                rdYesMacularDegeneration.Checked = value;
            }
        }

        public bool RetinalDetachment
        {
            get
            {
                return rdYesRetinalDetachment.Checked;
            }
            set
            {
                rdYesRetinalDetachment.Checked = value;
            }
        }

        public bool RetinalDisease
        {
            get
            {
                return rdYesRetinalDisease.Checked;
            }
            set
            {
                rdYesRetinalDisease.Checked = value;
            }
        }

        public bool Arthritis
        {
            get
            {
                return rdYesArthritis.Checked;
            }
            set
            {
                rdYesArthritis.Checked = value;
            }
        }

        public bool Cancer
        {
            get
            {
                return rdYesCancer.Checked;
            }
            set
            {
                rdYesCancer.Checked = value;
            }
        }

        public bool Diabetes
        {
            get
            {
                return rdYesDiabetes.Checked;
            }
            set
            {
                rdYesDiabetes.Checked = value;
            }
        }

        public bool HeartDisease
        {
            get
            {
                return rdYesHeartDisease.Checked;
            }
            set
            {
                rdYesHeartDisease.Checked = value;
            }
        }

        public bool HighBloodPressure
        {
            get
            {
                return rdYesHighBlood.Checked;
            }
            set
            {
                rdYesHighBlood.Checked = value;
            }
        }

        public bool KidneyDisease
        {
            get
            {
                return rdYesKidNeyDisease.Checked;
            }
            set
            {
                rdYesKidNeyDisease.Checked = value;
            }
        }

        public bool Lupus
        {
            get
            {
                return rdYesLupus.Checked;
            }
            set
            {
                rdYesLupus.Checked = value;
            }
        }

        public bool ThyroidDisease
        {
            get
            {
                return rdYesThyroidDisease.Checked;
            }
            set
            {
                rdYesThyroidDisease.Checked = value;
            }
        }

        public bool Other
        {
            get
            {
                return rdYesOther.Checked;
            }
            set
            {
                rdYesOther.Checked = value;
            }
        }
        #endregion

        private void btnContinue_Click(object sender, EventArgs e)
        {
            this.presenter.DisplayNextStep(this.step);
        }

        private void btnBack_Click(object sender, EventArgs e)
        {
            this.presenter.BackToPreviousStep(this.step);
        }

    }
}
